package com.xxgc.cloud.auth.springcloudauth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxgc.cloud.auth.springcloudauth.controller.pojo.UserRolesAndPermissions;
import com.xxgc.cloud.auth.springcloudauth.entity.Users;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-11-22
 */
public interface IUsersService extends IService<Users> {
    //用户注册
    Boolean userRegister(Users users);
    //通过手机号查询盐值
    Users selectSaltByPhoneNumber(String phoneNum);
    //用户登录
    Users userLogin(Users users);
    //更新最后一次登录时间
    Boolean updateLastLoginTime(Users users);
    //通过用户id获取到角色和权限信息
    UserRolesAndPermissions selectRoAndPeByUserId(Long userId);
}
